<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
hello<span th:text="${name}"></span><br>
性别是
<span th:if="${sex=='男'}">男</span>
<span th:if="${sex=='女'}">女</span>
<input type="text" th:value="${#dates.format(birth,'yyyy-MM-dd')}"/>
<input type="text" th:value="${#strings.substring(msg,0,6)}"/>
<br>
<table border="1">
    <tr>
        <th>id</th>
        <th>name</th>
        <th>sex</th>
    </tr>
    <tr th:each="u : ${list}">
        <th th:text="${u.id}"></th>
        <th th:text="${u.name}"></th>
        <th th:text="${u.sex}"></th>
    </tr>
</table>
<br>
<a th:href="@{/}">@{/}</a>
<br>
<a th:href="@{~/}">@{~/}</a><br>
<a th:href="@{/abc(id=1,name='159')}">abc</a><br>
<a th:href="@{/abc1/{id}/{name}(id=2,name='357')}">abc1</a><br>
<a th:href="@{/abc2/{id}(id=3,name='258')}">abc2</a><br>
<a th:href="@{/request}">request</a><br>

</body>
</html>